import request from '../utils/request';

// 获取冰箱食材列表
export function getFridgeIngredients(params) {
  return request.post(`/fridge/userIngredient/page`, params);
}

// 添加食材
export function addIngredient(data) {
  return request.post('/fridge/userIngredient/add', data);
}


// 删除食材
export function deleteIngredient(itemId) {
  return request.delete(`/fridge/userIngredient/delete/${itemId}`);
}


// 编辑食材
export function updateIngredient(data) {
  return request.put('/fridge/userIngredient/edit', data);
} 




